﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ARS.Control.Attributes
{
    public class DbSelectHtmlSelect:DbSelectAll
    {
        public DbSelectHtmlSelect()
        {
            //this.DataValueField = "Id";
            this.DataTextField = "Name";
        }

        private string _DataValueField;
        public string DataValueField
        {
            get
            {
                if (string.IsNullOrEmpty(_DataValueField))
                {
                    this._DataValueField = KeyField;
                }
                return this._DataValueField;
            }
            set
            {
                _DataValueField = value;
            }
        }

        public string DataTextField
        {
            get;
            set;
        }
        /// <summary>
        /// 第一列的显示值
        /// </summary>
        public string FirstOptionText
        {
            get;
            set;
        }
        /// <summary>
        /// 第一列的值
        /// </summary>
        public string FirstOptionValue
        {
            get;
            set;
        }
    }
}
